package br.com.controlador;

import br.com.modelo.Resolucao;
import java.io.Serializable;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author gilberto.costa
 */
@ManagedBean
@ViewScoped
public class ResolucaoControler implements Serializable {

    private Resolucao resolucao;

    @PostConstruct
    public void init() {
        setResolucao(new Resolucao());
    }

    /**
     * @return the resolucao
     */
    public Resolucao getResolucao() {
        return resolucao;
    }

    /**
     * @param resolucao the resolucao to set
     */
    public void setResolucao(Resolucao resolucao) {
        this.resolucao = resolucao;
    }

    public List<Resolucao> retornaResolucao() {
        return Resolucao.retornaResolucoes();
    }
}
